package com.yue.servlet;

import javax.servlet.AsyncEvent;
import javax.servlet.AsyncListener;
import javax.servlet.annotation.WebListener;
import java.io.IOException;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/11/30<br/>
 *
 * @author QiuYang
 */
//@WebListener("myAsyncListener")
public class MyAsyncListener implements AsyncListener {
    @Override
    public void onComplete(AsyncEvent event) throws IOException {
        System.out.println("*******************异步处理完成！************************");
    }

    @Override
    public void onTimeout(AsyncEvent event) throws IOException {
        System.out.println("*******************异步处理超时！************************");
    }

    @Override
    public void onError(AsyncEvent event) throws IOException {
        System.out.println("*******************异步处理出错！************************");
    }

    @Override
    public void onStartAsync(AsyncEvent event) throws IOException {
        System.out.println("*******************异步处理开始！************************");
    }
}
